package com.eco.fanliapp.common.response;

import java.io.Serializable;
import java.util.List;
/**
 * @ProjectName: fanliapp
 * @Package: com.eco.fanliapp.common.response
 * @ClassName: PageBean
 * @Author: geely
 * @Description:
 * @Date: 2019/11/28 14:12
 * @Version: 4.2.2
 */
public class PageBean<T> implements Serializable {

	private static final long serialVersionUID = 2998539498512262453L;

	private int currentPage;

    private int total;
    private int totalPage;
    private List<T> list;

    public PageBean(int currentPage, int total, int totalPage, List<T> list) {
        this.currentPage = currentPage;
        this.total = total;
        this.totalPage = totalPage;
        this.list = list;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
